let idNext = 0;
export const addTodo = values => ({
    type: 'ADD_TODO',
    id: idNext++,
    values
})

export const getID = () => ({
    type: 'GET_ID',
})

export const markDone = id => ({
    type: 'MARK_DONE',
    id
})

export const removeTodo = id => ({
    type: 'REMOVE_TODO',
    id
})

export const editTodo = values => ({
    type: 'EDIT_TODO',
    values,
    id: idNext
})

export const ShowTodos = {
    SHOW_ALL: 'SHOW_ALL'
}

